$(function(){
    // 背景变白
    $("#search1,#search2").blur(function(){
        $(".fknAV").css("opacity","0");
        
    });
    $("#search1,#search2").click(function(){
        $(".fknAV").css("opacity","0.9");
        $(".fknAV").css("z-index","100");
    })
    // 中间出现搜索表单
    
    $("#search2form").mouseenter(function(){
        $("#search2form").css("display","block");
    });

    $("#search2").click(function(){
        $("#search1form").css("display","none");
        $("#search2form").css("display","block");
    });
    $("#search1form").mouseenter(function(){
        $("#search1form").css("display","block");
    });

    $("#search1").click(function(){
        $("#search2form").css("display","none");
        $("#search1form").css("display","block");
    });
    $("#outer").click(function(){
        $("#search1form").css("display","none");
        $("#search2form").css("display","none");
        $(".fknAV").css("z-index","-1");
    })
})
